<?php

namespace app\staff\controller;

use app\common\controller\StaffApi;

/**
 * 首页接口
 */
class Index extends StaffApi
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function agreement()
    {
        $data = [
            'user_agreement'=>\app\common\model\Config::get(['name'=>'staff_user_agreement'])->value,
            'privacy_protocol'=>\app\common\model\Config::get(['name'=>'staff_privacy_protocol'])->value,
        ];
        $this->success('请求成功',$data);
    }

    /**
     * 首页
     *
     */
    public function index()
    {
        $this->success('请求成功');
    }
}
